#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/opt/openssl/ssl/lib/:/opt/libgcc/lib/:/opt/libiconv/lib/:/opt/mysql/lib/mysql:/usr/lib/mps
export II_SYSTEM=/opt/pkg/IngresII_2.6_dunham_gen
export INGLIB=$II_SYSTEM/ingres/lib
export PGLIB=/usr/local/pgsql/7.4.2/lib
export MYLIB=/usr/local/mysql/mysql/lib
export TDSLIB=/usr/local/freetds/0.62/lib
export LDAPLIB=/usr/local/ldapcsdk/lib
export ORALIB=/opt/pkg/oracle/lib
export XLIB=/usr/openwin/lib 
export PATH=$PATH:/usr/local/php/4.3.8-1-apache2.0.63/bin
cd sh
rm *
cd ..
cd xml
rm *
cd ..
php xml_files.php
cd sh
for file in *
do
   $file   
done
cd ../xml
for file in *
do
   php ../xml_into_database.php $file
done
